<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/nav.css" />
</head>
<body>

<h2><a href="?a=nav&m=add">添加主导航</a>商品 -- 导航条列表</h2>
<div id="list">
    <form method="post" action="?a=nav&m=sort" >
    <table>
        <tr><th>名称</th><th>简介</th><th>子类</th>{if $oneNav}<th>关联品牌</th>{/if}<th>排序</th><th>操作</th></tr>
        {foreach from=$allNav key=key item=value}    
        <tr><td>{$value->name}</td><td>{$value->info}</td><td><a href="?a=nav&sid={$value->id}">查看</a> | <a href="?a=nav&m=add&sid={$value->id}">添加</a></td>{if $oneNav}<td>{$value->brand}</td>{/if}<td><input type="text" name="sort[{$value->id}]" class="sort" value="{$value->sort}"/></td><td> <a href="?a=nav&m=update&id={$value->id}"><img src="view/admin/images/edit.gif" alt="编辑" title="编辑"/></a> <a href="?a=nav&m=delete&id={$value->id}"><img src="view/admin/images/drop.gif" alt="删除" title="删除" onclick="return confirm('确认删除?') ? true : false;"/></a></td></tr>
        {foreachelse}
        <tr><td colspan="6">没有任何数据</td></tr>
        {/foreach}
        {if $allNav}<tr><td></td><td></td><td></td><td></td><td><input type="submit" name="send" value="排序"/></td><td></td></tr>{/if}
        {if $oneNav}<tr><td colspan="6">主类:[{$oneNav[0]->name}] [<a href="?a=nav">返回</a>]</td></tr>{/if}
    </table>
    </form>
</div>
<div id="page">{$page}</div>
</body>
</html>